#下标
list=["lan","wang","fang"]
list[0]="aaa"
print(list) #['aaa', 'wang', 'fang']

#reverse-逆置
list1=[1,5,6,8,9,3]
list1.reverse()
print(list1)        #[3, 9, 8, 6, 5, 1]

#排序
#sort(key=None,reverse=False)       #默认False-升序

list1.sort(reverse=True)
print(list1)
#[9, 8, 6, 5, 3, 1]  逆序